package lesson.block.construction;

public class Test {
    public static void main(String[] args) {
        Person p1= new Person();
        Person p2 = new Person(10);
    }
}

class Person{
    {
        System.out.println("我是构造代码块，我执行了");
    }

    public Person(){
        System.out.println("我是无参构造");
    }

    public Person(int a){
        System.out.println("我是带参构造");
    }
}
